scalebutton: Remove unused click_id member
authorTimm Bäder <mail@baedert.org>
Mon, 27 Apr 2020 09:55:00 +0000 (11:55 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 5 May 2020 06:20:09 +0000 (08:20 +0200)
gtk/gtkscalebutton.c

index 809e7908578b6d2fb816ddcec6a5b0e74b6bce32..4029279bf8bdd6d81cf2c4ab5a1eb175467a812d 100644 (file)
@@ -119,8 +119,6 @@ typedef struct
   GtkScrollType autoscroll_step;
   gboolean autoscrolling;
 
-  guint click_id;
-
   gchar **icon_list;
 
   GtkAdjustment *adjustment; /* needed because it must be settable in init() */
@@ -409,7 +407,6 @@ gtk_scale_button_init (GtkScaleButton *button)
   GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
   GtkEventController *controller;
 
-  priv->click_id = 0;
   priv->orientation = GTK_ORIENTATION_VERTICAL;
   priv->applied_orientation = GTK_ORIENTATION_VERTICAL;
 
@@ -542,12 +539,6 @@ gtk_scale_button_dispose (GObject *object)
   g_clear_pointer (&priv->dock, gtk_widget_unparent);
   g_clear_pointer (&priv->button, gtk_widget_unparent);
 
-  if (priv->click_id != 0)
-    {
-      g_source_remove (priv->click_id);
-      priv->click_id = 0;
-    }
-
   G_OBJECT_CLASS (gtk_scale_button_parent_class)->dispose (object);
 }